package org.dromara.system.domain.bo;

import org.dromara.system.domain.PointsMallGoods;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.common.BasePageReqDTO;

/**
 * 积分商城商品业务对象 points_mall_goods
 *
 * @author Lion Li
 * @date 2025-07-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PointsMallGoods.class, reverseConvertGenerate = false)
public class PointsMallGoodsBo extends BasePageReqDTO {

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private Long userId;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 图片
     */
    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String image;

    /**
     * 库存
     */
    @NotNull(message = "库存不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer inventory;

    /**
     * 兑换积分
     */
    @NotNull(message = "兑换积分不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal points;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer sort;


    //0下架  1上架
    private Integer status;
    /**
     * 备注
     */
    private String remark;


    private String userName;


}
